home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Tool Chest / Development Kits / MPW etc. / MPW-GM / MPW / Examples / CFMExamples / CSharedLibrarySample / Main.c < prev    next >
Encoding:
Text File  |  1995-10-26  |  509 b   |  28 lines  |  [TEXT/MPS ]

  1. //
  2. //    Main.c - main body of simple C program
  3. //
  4. //
  5. //    Copyright © 1993, 1994, Apple Computer, Inc.  All rights reserved.
  6. //
  7.  
  8. #include "SharedLib.h"  
  9.  
  10.  
  11. static WindowPtr    gWindow;
  12. static Rect            gRect;
  13.  
  14. QDGlobals    qd;
  15.  
  16. void main ()
  17. {
  18.         
  19.     InitGraf (&qd.thePort);
  20.     InitFonts ();
  21.     InitWindows ();
  22.     InitCursor ();
  23.     SetRect (&gRect, 100, 100, 400, 200);
  24.     gWindow = NewWindow (NULL, &gRect, (ConstStr255Param)"\pSharedLibExample", true, rDocProc,
  25.                          (WindowPtr)-1, false, 0);
  26.     DoMessage(gWindow);    
  27. }
  28.